package com.hunt.service.impl;

import com.hunt.dao.FinanceNewsMapper;
import com.hunt.model.entity.FinanceInfoNew;
import com.hunt.model.entity.FinanceInfoNewDetail;
import com.hunt.service.FinanceNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FinanceNewsServiceImpl implements FinanceNewsService {

    @Autowired
    private FinanceNewsMapper infoMapper;

    @Override
    public List<FinanceInfoNew> findFinanceInfoByPage(String time, Integer sizeUp) {
        return infoMapper.findFinanceInfoByPage(time,sizeUp);
    }

    @Override
    public FinanceInfoNewDetail findFinanceDetailByDetailId(String detailId) {
        return infoMapper.findFinanceDetailByDetailId(detailId);
    }



}
